<div id="wrapper-content">
   <div align="center" class="titre_home" >RECOMMANDATION</div>
    <table align="center" width="95%" class="list" >
      
        <?php foreach ($list_recommandation as $aRow): ?>
        <?php
            $title = $aRow['title'];
            $user_id = $aRow['user_id'];
            
            $image = './../assets/avatar/images/' . $aRow['gravatar'];
            if (file_exists($image) && $aRow['gravatar'] != null) {
                $image = root_url('seatting-falin') . 'assets/avatar/images/' . $aRow['gravatar'];
            } else {
                $image = root_url('seatting-falin') . 'assets/noimage.gif';
            }

            $long_date = $aRow['feedback_date'];
            $datestr = "%d/%m/%Y";
            $posted_date = mdate($datestr, $long_date);
        ?>
            <tr >
                <td width="10%" valign="top" colspan="2">
                    <p><img border="0" src="<?php echo $image; ?>" width="60" alt=""/></p>
                </td>
                <td>
                    <p style="font-weight: bold;"><?php echo $aRow['title']; ?></p>
                    <p><?php echo $aRow['content']; ?></p>
                    <div class="posted" ><?php echo $aRow['display_name']; ?> <span><?php echo '('.$posted_date.')'; ?></span></div>
                </td>
        </tr>
        <?php endforeach; ?>
    </table>
    <?php echo $pagination; ?>
    <?php if($this->session->userdata('user_id')==TRUE){?>

            <div style="margin-top:20px">AJOUTER RECOMMANDATION</div>
 
    <?php echo form_open('seatting_falin/feedback'); ?>
                <table align="center" >
                    <tr>
                        <td>Title:</td>
                        <td><input type="text" name="title" size="50" value=""/></td>
                    </tr>
                    <tr>
                        <td>Content : </td>
                        <td><textarea name="content" id="content" type="text" rows="10" cols="40"></textarea></td>
                        <td><?php echo validation_errors(); ?></td>
                    </tr>
                    <tr>
                        <td></td><td><input type="submit" name="submit" value="Publier" /></td>
                    </tr>
                </table>
    <?php echo form_close(); ?>
    <?php }?>
</div>
<!--END wrapper-content-->
